using MediatR;
using ProduceBasicData.Api.DTO;
using ProduceBasicData.ErrorCode;

namespace ProduceBasicData.Api.Application.Command.Material.MaterialGroup
{
    /// <summary>
    /// 物料群组查询命令类
    /// </summary>
    public class GetMaterialGroupCommand : IRequest<ApiPaging<MaterialGroupDTO>>
    {
        /// <summary>
        /// 当前页
        /// </summary>
        public int Index { get; set; } = 1;

        /// <summary>
        /// 页容量
        /// </summary>
        public int Size { get; set; } = 5;

        /// <summary>
        /// 物料编码
        /// </summary>
        public string? MaterialNo { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string? MaterialName { get; set; }

        /// <summary>
        /// 群组类型ID
        /// </summary>
        public int? GroupTypeId { get; set; }

        /// <summary>
        /// 群组ID
        /// </summary>
        public int? GroupId { get; set; }
    }
}
